from PyQt5 import QtWidgets
import sys

class firstwindows(QtWidgets.QWidget):
    def __init__(self):
        super(firstwindows,self).__init__()
        self.resize(336,275)
        self.gridLayout=QtWidgets.QGridLayout()
        self.verticalLayout=QtWidgets.QVBoxLayout()
        self.pushButton_1=QtWidgets.QPushButton()
        self.pushButton_2=QtWidgets.QPushButton()
        self.verticalLayout.addWidget(self.pushButton_1)
        self.verticalLayout.addWidget(self.pushButton_2)
        self.gridLayout.addLayout(self.verticalLayout,0,0,1,1)
        self.setLayout(self.gridLayout)
        self.pushButton_1.setText('PushButton1')
        self.pushButton_2.setText('PushButton2')

if __name__=='__main__':
    app=QtWidgets.QApplication(sys.argv)
    new=firstwindows()
    new.show()
    sys.exit(app.exec_())
    
